package zsh.service.ServiceImpl;

import org.springframework.stereotype.Service;
import zsh.domain.User;
import zsh.service.IUserService;
@Service
public class UserService implements IUserService {
    @Override
    public int addUser(User user) {
        System.out.println("添加用户");
        throw new RuntimeException("用来测试出错");
//        return 0;
    }

    @Override
    public int updateUser(User user) {
        System.out.println("修改用户");
        return 0;
    }

    @Override
    public int deleteUser(int id) {
        System.out.println("删除用户");
        return 0;
    }

    @Override
    public User findUserById(int id) {
        System.out.println("查询用户");
        return null;
    }
}
